Latest Questions

cannot import name 'LayerNormalization' from 'tensorflow.python.keras.layers.normalization'

I am trying to build a ANN model using Tensorflow library on Spyder. Afte ı set my training and test data, ı imported the keras library as seen below

Cannot import flask_wtf into Python 3.9 venv

No matter what I do, I cannot import flask_wtf, or any variation of it - flask-wtf, flask_WTF, flask-WTF, etc. My linter doesn't recognize it (pylance in VSCod

Wrong records are being showed with the Fields Plugin

I have the fields plugin to display my books in the index.gsp view. My book domain have a publishedDate Date field. <f:table collection="${bookList}"/> &l

DataSpell: Jupyter server failed to start

I am getting following error while trying to run a jupyter-notebook cell from DataSpell. Can anyone suggest about how to get rid of this? Thanks in advance.

Computation failed in `stat_contour_fill()`

I'm trying to generate the contour map of LAI in the forest. I used geom_contour_fill function from the metR package. My data looks like this LAI latitude long

NSJSONSerialization to plain old object?

A lot of modern programming languages have JSON libraries that support encoding and decoding json to/from "plain old objects" - i.e. instances of classes that p

PCA - All variables with same signal on PC1 coordinates

So, I am analyzing a dataset that consists of 160 observations and 20 variables and am performing a PCA. It is about patients affected by a disease and the vari

.zshrc:3: parse error near `>' when i open terminal on mac

i have error when i open my macOS Monterey 12.3.1 terminal after installing flutter like this : Last login: Sat May 14 10:49:04 on console /Users/malela/.zshrc

How can I add a filter for specific categories on functions.php?

I am on functions.php and I want to add this filter: function graphene_alter_the_query( $request ) { $dummy_query = new WP_Query(); $dummy_query->pa

Create MACD band on Tradingview

My idea is to make the MACD histogram oscillating in a range from 0-100 just like the RSI. I did it successfully, but compared to normal MACD histogram it is to

SUMIFS Between Conditions

I am looking for some help with a SUMIFS formula. I am trying calculate the revenue between dates for a coupon code, where the coupon code sales are in a separa

Run Websockets with SSL for a Production Application (py2exe)

I am building a python application that is packaged as an EXE. This application runs as a Websockets server and communicates with a web app hosted on Firebase.

Power BI Filter Selection

In Qlik Sense, after select a slice item, press ENTER, it filters out other items, and only keep the selected one. Power BI shows selected item as highlighted,

Download from s3 into a actions workflow

I'm working on 2 github actions workflows: Train a model and save it to s3 (monthly) Download the model from s3 and use it in predictions (daily) Using https://

Reuse Spark Session Across Modules/Packages

We are building a reusable data framework using PySpark. As part of this, we had built one big utilities package that hosted all the methods. But now, we are pl

Communication between modules and looping through values to create several modules

Goal I have five expectations: Solution using modules Communication between modules Dynamic creation of modules local storage using shinyStore Export result in

Is possible use Microsoft Graph API in a UWP app on HoloLens in order to initiate a video call through Microsoft Teams?

I would like to use Microsoft Teams to start a video call using HoloLens device with another people (using a PC). I have and UWP app that I can install on HoloL

How can I render only once an Alert component in react native?

How can I render only one time an Alert component in react native if my dashboardScreen is being render many times? I'm using Context api, if I dispatch an acti

Date scaffolding with multiple different date measures?

I want to show the amount of people in each contract status historically. I have a list of every contract's start date, suspension dates, expiration date, and t

Is using @CrossOrigin the same as overriding addCorsMapping() in Spring?

In my controller I currently added the following annotation @CrossOrigin: @RestController @RequestMapping(value = "/dev/test") @CrossOrigin publ

Declare a queue with x-max-length programmatically using Rabbitmq-c

I am implementing a RPC function for my C application , and try to programmatically declare a queue which limits maximum number of pending messages, after read

How did this machine establish an encrypted connection with a server with just a TCP handshake?

beginner here. I am currently looking at some C&C traffic from an infected machine and have come across some interesting TCP segments within the PCAP file.

React native - undefined is not an object (evaluating '_bip.default.generateMnemonic')

I'm building a mobile application and I need to generate a passphrase using bip39. At first, when I installed the package from npm I got missing dependencies er

Use Docker with same port as other program

I am currently facing following problem: I build a docker container of a node server (a simple express server which sends tracing data to Zipkin on port 9411) a

How to call an iOS method of an argument of a method in a Frida Trace handler?

I am currently trying to log packets between some game client and server. And I have this question. I do this: onEnter(log, args, state) { console.log(ObjC.

How to use a standalone Operations instance and rollback changes?

The Alembic documentation states that "a standalone Operations instance can be made for use cases external to regular Alembic migrations by passing in a Migrati

In C++, how can one map between enum values and data types, so the types can be used in templates?

How can one do this, which is obviously impossible C++, in real C++?: Type decodeUiEnum(UiEnum myEnum) { // impossible: cannot return a data type // one sw

How to check if AWS AMI support cloud-init?

In AWS Console when launching an instance with any image I get "user data" field to fill in optionally to be later executed by cloud-init. However, not all imag

C# Send a toast notification from a Windows Service : UnauthorizedAccessException

I try to send a Toast Notification in a Windows Service, but I have this exeption : System.UnauthorizedAccessException: Accès refusé. (Exception